const Mock = require("mockjs");

module.exports = Mock.mock({
  "list|10": [
    {
      title: "@ctitle(10, 20)",
      city: "@city",
      nickname: "@cname",
      avator: "@image(50x50, @color)",
      date: "@date",
      "typeList|2-5": [
        {
          "type|+1": ["前端", "后端", "JAVA", "php", "#C"],
        },
      ],
      id: "@id",
    },
  ],
  "tab|8": [
    {
      "title|+1": [
        "前端",
        "后端",
        "移动端",
        "数据库",
        "运维",
        "人工智能",
        "工具",
        "其他",
      ],
      "children|10-30": ["@cword(2,4)"],
    },
  ],
  "activeList|6": [{
    "title|+1": ["今日榜单", "本周榜单", "本月榜单", "第三季度", "本年榜单", '综合榜单'],
    "curtDownTime": `@integer(${1000 * 60 * 60 * 12}, ${1000 * 60 * 60 * 24 * 100})`,
    "list|10": [{
      "avator": '@image(30x30, @color)',
      "nickname": '@cname',
      "count|10-100": 1
    }]
  }]
});

